package com.tmanager.persistence.entity;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Version;

/**
 * @author Paul A. Shmarev
 */
@MappedSuperclass
public abstract class VersionedEntity extends IdentifiedEntity {

    @Version
    @Column(name = "version", nullable = false)
    private long version;

    public long getVersion() {
        return version;
    }
}
